﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CongTacDoan.aspx.cs" Inherits="DanhMuc_CongTacDoan" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="udt" runat="server">
        <ContentTemplate>
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <h3><i class="icon-file"></i>Cập nhật thông tin công tác đoàn</h3>
                            <div class="box-tool">
                                <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                                <a data-action="close" href="#"><i class="icon-remove"></i></a>
                            </div>
                        </div>
                        <div class="box-content">
                            <div class="span6 control-group info" style="padding-left:150px;">
                                <label class="control-label" style="width:150px;padding-right:10px;">Đơn vị công tác</label>
                                <div class="controls">
                                    <asp:DropDownList ID="drlDonViTrucThuoc" runat="server" CssClass="span12"></asp:DropDownList>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Ngày bắt đầu công tác</label>
                                <div class="controls">
                                    <asp:TextBox  ID="txtNgaycongtac" placeholder="ngày/tháng/năm"  class="span10" runat="server" Width="186px" Height="16px"></asp:TextBox>
                                    <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                    <ajaxToolkit:CalendarExtender ID="calendarButtonExtender1" runat="server" TargetControlID="txtNgaycongtac" PopupButtonID="Image1" Format="dd/MM/yyyy" />
                                 <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgaycongtac"></ajaxToolkit:MaskedEditExtender>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Cấp ủy hiện tại</label>
                                <div class="controls">
                                    <asp:DropDownList ID="drlCapUyHienTai" runat="server" CssClass="span12"></asp:DropDownList>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Cấp ủy kiêm</label>
                                <div class="controls">
                                    <asp:DropDownList ID="drlCapUyKiem" runat="server" CssClass="span12"></asp:DropDownList>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Chức vụ hiện tại</label>
                                <div class="controls">
                                    <asp:DropDownList ID="drlChucVu" runat="server" CssClass="span12"></asp:DropDownList>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Phụ cấp chức vụ</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtPhuCapChucVu" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                </div>
                            </div>
                            <div class="span6 control-group info">
                                <label class="control-label" style="width:150px;padding-right:10px;">Công việc</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtCongViec" runat="server" CssClass="span7" onblur="KiemTraInjection(this);"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Mô tả công việc</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtMoTaCongViec" runat="server" CssClass="span7" TextMode="MultiLine" Height="50px" onblur="KiemTraInjection(this);"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Ngạch công chức</label>
                                <div class="controls">
                                    <asp:DropDownList ID="drlNgachCongChuc" runat="server" CssClass="span7"></asp:DropDownList>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Bậc lương</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtBacLuong" runat="server" CssClass="span7" onblur="KiemTraInjection(this);"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Hệ số</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtHeso" runat="server" CssClass="span7" onblur="KiemTraInjection(this);"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Ngày cấp</label>
                                <div class="controls">
                                    <asp:TextBox  ID="txtNgayCap" class="span10" placeholder="ngày/tháng/năm"  runat="server" Width="186px" Height="16px"></asp:TextBox>
                                    <asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar"/>
                                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtNgayCap" PopupButtonID="ImageButton1" Format="dd/MM/yyyy" />
                                    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgayCap"></ajaxToolkit:MaskedEditExtender>
                                </div>
                            </div>
                            <div class="button_sign" style="text-align:center;">
                                <input type="hidden" runat="server" id="txtid" />
                                <asp:LinkButton ID="btn_add" Visible="true" runat="server" OnClick="btn_add_Click" class="btn btn-primary" ><i class="icon-edit"></i> Thêm mới</asp:LinkButton>
                                <asp:LinkButton ID="btn_save" Visible="true" runat="server" OnClick="btn_save_Click" class="btn btn-primary" ><i class="icon-save"></i> Lưu</asp:LinkButton>
                                <asp:LinkButton ID="btn_close" Visible="true" runat="server" class="btn  btn-danger" ><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                <asp:Label ID="lbl_message" runat="server" Font-Size="11pt"></asp:Label>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
             <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-content">
                            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 0px" DataKeyNames="ID" OnRowCommand="grid_RowCommand">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Đơn vị công tác">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbldonvicongtac" Text='<%#Eval("DonViCongTac") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Ngày bắt đầu">
                                        <ItemTemplate>
                                            <asp:Label ID="lblngaybatdau" runat="server" Text='<%#Eval("NgayBatDau") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Cấp ủy hiện tại">
                                        <ItemTemplate>
                                            <%#Eval("CapUyHienTai") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Cấp ủy kiêm">
                                        <ItemTemplate>
                                            <%#Eval("CapUyKiem") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Chức vụ đoàn">
                                        <ItemTemplate>
                                            <%#Eval("ChucVuDoan") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Chọn">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButtonChon" runat="server" CausesValidation="false"
                                                CommandName="SelectDoanVien" CommandArgument='<%# Eval("ID") %>' Text="<i class='icon-list'></i> Chọn"></asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Xóa">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButtonXoa" runat="server" CausesValidation="false"
                                                CommandName="DeleteDoanVien" CommandArgument='<%# Eval("ID") %>' Text="<i class='icon-remove red'></i> Xóa"></asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="udtprogress" runat="server" AssociatedUpdatePanelID="udt">
        <ProgressTemplate>
            <div class="progress">
                <img src="../img/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>    
    <br><br><br><br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br><br><br><br>
</asp:Content>
